home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Testers
/
Gen-expansion-var Tester
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-26
|
597b
|
27 lines
(def-orchestra 'orchestra
all-instruments (piano)
)
(setq symbols
(gen-expansion-parallel-var
3 3
(flatten (cons-n (gen-random 0.5 8 '(a b c d e)) 20))
(list (gen-random 0.51 8 '(a b c d e))
(symbol-inversion 'a (gen-random 0.51 8 '(a b c d e))))))
(def-section sect-a
default
zone (lsym-correct (* (length symbols) (get-ratio '1/16 :ratio)))
tonality (activate-tonality (major c 4))
length '(1/16)
velocity '(64)
piano
symbol symbols
)
(midiport :printer)
(play-file-p "my song"
all-instruments '(sect-a)
)